import request from '@/utils/request';

export function repoSummary(queryParams) {
  return request({
    url: '/mes/reco/repo/repoSummary',
    method: 'get',
    params: queryParams
  });
}

export function getdefectiveData(queryParams) {
  return request({
    url: '/mes/reco/repo/getdefectiveData',
    method: 'get',
    params: queryParams
  });
}

export function getProductsData(queryParams) {
  return request({
    url: '/mes/reco/repo/getProductsData',
    method: 'get',
    params: queryParams
  });
}

export function getItemData(queryParams) {
  return request({
    url: '/mes/reco/repo/getItemData',
    method: 'get',
    params: queryParams
  });
}

export function getConsumablesData(queryParams) {
  return request({
    url: '/mes/reco/repo/getConsumablesData',
    method: 'get',
    params: queryParams
  });
}

export function getpackageItemData(queryParams) {
  return request({
    url: '/mes/reco/repo/getpackageItemData',
    method: 'get',
    params: queryParams
  });
}

export function getSampleData(queryParams) {
  return request({
    url: '/mes/reco/repo/getSampleData',
    method: 'get',
    params: queryParams
  });
}

// 查询物料的入库详情接口
export function getItemInDetail(itemCode) {
  return request({
    url: '/mes/reco/repo/itemInDetail',
    method: 'get',
    params: { itemCode }
  });
}

// 查询物料的出库详情接口
export function getItemOutDetail(itemCode) {
  return request({
    url: '/mes/reco/repo/itemOutDetail',
    method: 'get',
    params: { itemCode }
  });
}

// 查询物料的对账详情接口
export function getItemRecoDetail(itemCode) {
  return request({
    url: '/mes/reco/repo/itemRecoDetail',
    method: 'get',
    params: { itemCode }
  });
}

export function searchItem(params) {
  return request({
    url: '/mes/reco/repo/search',
    method: 'get',
    params
  });
}
export function repoSummaryReal(queryParams) {
  return request({
    url: '/mes/reco/repo/repoSummaryReal',
    method: 'get',
    params: queryParams
  });
}
// 云仓数据
export function ycInventory(query) {
  return request({
    url: '/mes/reco/repo/ycInventory',
    method: 'get',
    params: query
  })
}


